<?php
namespace app\index\controller;

use think\Config;
use think\Controller;
use think\Request;

class Subsidiary extends Base
{
    protected $son = [
        'fdc'=>10,
        'jz'=>10,
        'zy'=>10,
    ];
	// 技术中心页面
	public function index( $action= "fdc")
	{
	    if(!array_key_exists($action,$this->son)){
            $action =  "fdc";
        }
        $info = \ArticleHelper::getArticle($this->son[$action]);

        $page = $info->render();
        $this->assign('action',is_numeric($action)?$action:0);
        $this->assign('info',$info);
        $this->assign('page',$page);
    	return $this->fetch('article/technology');
	}
}
